<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 80 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */
 .style80p163{position:absolute;left:223px;top:164px}

 /* Position Styles */
 .ts80p0{position:absolute;left:106px;top:97px;}
 .ts80p1{position:absolute;left:352px;top:97px;}
 .ts80p3{position:absolute;left:672px;top:97px;}
 .ts80p7{position:absolute;left:106px;top:113px;}
 .ts80p8{position:absolute;left:706px;top:1026px;}
 .ts80p9{position:absolute;left:331px;top:1044px;}
 .ts80p13{position:absolute;left:380px;top:145px;}
 .ts80p15{position:absolute;left:613px;top:363px;}
 .ts80p16{position:absolute;left:106px;top:378px;}
 .ts80p17{position:absolute;left:106px;top:397px;}
 .ts80p18{position:absolute;left:106px;top:415px;}
 .ts80p20{position:absolute;left:106px;top:434px;}
 .ts80p22{position:absolute;left:106px;top:452px;}
 .ts80p23{position:absolute;left:106px;top:470px;}
 .ts80p24{position:absolute;left:106px;top:489px;}
 .ts80p26{position:absolute;left:106px;top:507px;}
 .ts80p27{position:absolute;left:106px;top:526px;}
 .ts80p29{position:absolute;left:106px;top:544px;}
 .ts80p30{position:absolute;left:106px;top:562px;}
 .ts80p32{position:absolute;left:106px;top:599px;}
 .ts80p33{position:absolute;left:106px;top:618px;}
 .ts80p34{position:absolute;left:106px;top:636px;}
 .ts80p35{position:absolute;left:106px;top:654px;}
 .ts80p37{position:absolute;left:106px;top:673px;}
 .ts80p38{position:absolute;left:106px;top:691px;}
 .ts80p39{position:absolute;left:106px;top:710px;}
 .ts80p41{position:absolute;left:106px;top:728px;}
 .ts80p43{position:absolute;left:106px;top:746px;}
 .ts80p44{position:absolute;left:106px;top:766px;}
 .ts80p46{position:absolute;left:106px;top:784px;}
 .ts80p48{position:absolute;left:106px;top:802px;}
 .ts80p50{position:absolute;left:106px;top:820px;}
 .ts80p52{position:absolute;left:106px;top:838px;}
 .ts80p54{position:absolute;left:106px;top:857px;}
 .ts80p55{position:absolute;left:106px;top:875px;}
 .ts80p56{position:absolute;left:106px;top:894px;}
 .ts80p58{position:absolute;left:106px;top:912px;}
 .ts80p59{position:absolute;left:106px;top:930px;}
 .ts80p60{position:absolute;left:106px;top:949px;}
 .ts80p62{position:absolute;left:106px;top:967px;}
 .ts80p63{position:absolute;left:106px;top:986px;}
 .ts80p65{position:absolute;left:552px;top:598px;}
 .ts80p67{position:absolute;left:552px;top:610px;}
 .ts80p68{position:absolute;left:552px;top:622px;}
 .ts80p70{position:absolute;left:552px;top:635px;}

 /* Font Styles */
 .ft0p80{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p80{font-weight:normal;}
 .ft2p80{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p80{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p80{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p80{font-style:normal;font-weight:bold;font-size:16px;font-family:helvetica,arial,sans-serif;color:#000000;}
 .ft6p80{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft7p80{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft8p80{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft9p80{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#FFFFFF;}
 .ft10p80{font-style:normal;font-weight:normal;font-size:11px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground80{position:absolute;left:97px;top:598px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index79.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;80 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index81.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground80><img src="./background80.png" width="641" height="457" border="0" alt=""></div>
<div class=style80p163><img src="./image80_163.png" width="390" height="214" border="0" alt=""></DIV>
<div class=ts80p0><span class="ft0p80"> </span></div>
<div class=ts80p1><span class="ft0p80">Gravitybox Schedule Primer<span class="ft1p80"> </span></span></div>
<div class=ts80p3><span class="ft0p80">Page 78&nbsp; </span></div>
<div class=ts80p7><span class="ft2p80"> </span></div>
<div class=ts80p8><span class="ft3p80"> </span></div>
<div class=ts80p9><span class="ft4p80">1998&#45;2004 Gravitybox Software LLC<span class="ft3p80"> </span></span></div>
<div class=ts80p13><span class="ft5p80">Figure 7.1 </span></div>
<div class=ts80p15><span class="ft6p80"> </span></div>
<div class=ts80p16><span class="ft6p80"> </span></div>
<div class=ts80p17><span class="ft6p80">In the Figure 7.1, the date Jun 8 is not completely visible. Though the starting edge is </span></div>
<div class=ts80p18><span class="ft6p80">visible, its end edge is beyond the view port. If the IsDayVisible function were to be </span></div>
<div class=ts80p20><span class="ft6p80">called with this date, it would return false, since the entire room is not visible. </span></div>
<div class=ts80p22><span class="ft6p80"> </span></div>
<div class=ts80p23><span class="ft6p80">This functionality may be used to add search capability to an application. Let the user </span></div>
<div class=ts80p24><span class="ft6p80">specify a date to which to move. On a large schedule this functionality is almost </span></div>
<div class=ts80p26><span class="ft6p80">mandatory. An application that requires a user to scroll for over 300 columns (days) to </span></div>
<div class=ts80p27><span class="ft6p80">get to a known point is not a very efficient application. </span></div>
<div class=ts80p29><span class="ft6p80"> </span></div>
<div class=ts80p30><span class="ft7p80">IsRoomVisible </span></div>
<div class=ts80p32><span class="ft6p80">When dealing with many rooms, there may be more rows </span></div>
<div class=ts80p33><span class="ft6p80">(or columns) than can be displayed in the view port of the </span></div>
<div class=ts80p34><span class="ft6p80">schedule. This IsRoomVisible method allows for the </span></div>
<div class=ts80p35><span class="ft6p80">checking of visibility of any Room object. Given a Room object&#146;s index or name, the </span></div>
<div class=ts80p37><span class="ft6p80">method returns a Boolean value that determines the visibility of the specified Room </span></div>
<div class=ts80p38><span class="ft6p80">object. As with the IsDayVisible method, if a room is only partially visible, this method </span></div>
<div class=ts80p39><span class="ft6p80">returns false. The start edge to the end edge must be in the view port for a return value </span></div>
<div class=ts80p41><span class="ft6p80">of true. </span></div>
<div class=ts80p43><span class="ft6p80"> </span></div>
<div class=ts80p44><span class="ft8p80">If Not Schedule1.IsRoomVisible(&#34;Room1&#34;) Then </span></div>
<div class=ts80p46><span class="ft8p80">&nbsp; .... </span></div>
<div class=ts80p48><span class="ft8p80">&nbsp; 'What to do if NOT visible </span></div>
<div class=ts80p50><span class="ft8p80">&nbsp; .... </span></div>
<div class=ts80p52><span class="ft8p80">End If<span class="ft6p80"> </span></span></div>
<div class=ts80p54><span class="ft6p80"> </span></div>
<div class=ts80p55><span class="ft6p80">This functionality may be used to add search capability to an application as well. This </span></div>
<div class=ts80p56><span class="ft6p80">will probably not be such an issue, since there will probably not be very many rooms on </span></div>
<div class=ts80p58><span class="ft6p80">a schedule. However, the Rooms collection may represent any group of objects. Rooms </span></div>
<div class=ts80p59><span class="ft6p80">may be a group of Trucks. The Rooms collection would be labeled &#147;Trucks&#148; and treated </span></div>
<div class=ts80p60><span class="ft6p80">as such. This collection allows for the addition of any item. So there may be many items </span></div>
<div class=ts80p62><span class="ft6p80">in this collection after all. For this reason, &#147;IsVisible&#148; and &#147;Show&#148; methods are defined </span></div>
<div class=ts80p63><span class="ft6p80">for the Rooms collection as well. </span></div>
<div class=ts80p65><span class="ft9p80">Quick Tip </span></div>
<div class=ts80p67><span class="ft10p80">You may check if a room is in the </span></div>
<div class=ts80p68><span class="ft10p80">viewable area by using the </span></div>
<div class=ts80p70><span class="ft10p80">&#147;IsRoomVisible&#148; property. </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
